package com.yun.many.auth.model.req;

import com.yun.many.auth.model.group.ValidGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class RoleEditReq implements Serializable {
    @NotNull(message = "id 不能为空", groups = {ValidGroup.Update.class})
    private Long id;

    @NotNull(message = "角色名称 不能为空", groups = {ValidGroup.Add.class})
    private String name;

    private String remark;

    @NotNull(message = "状态 不能为空", groups = {ValidGroup.Add.class})
    private Integer status;
}
